// cookies
import { useCookies } from "@vueuse/integrations/useCookies";

const TokenKey = "token";

const cookies = useCookies();

// 获取token
export function getToken() {
  return cookies.get(TokenKey);
}

// 设置token

export function setToken(token) {
  return cookies.set(TokenKey, token);
}

// 清除token
export function removeToken() {
  return cookies.remove(TokenKey);
}
